package com.cheli.manager.controller;

import com.cheli.commonutils.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(value = "entUser", tags = "管理员登陆界面")
@RequestMapping("/manager/user")
@CrossOrigin
public class ManaLoginController {
   @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }

   @GetMapping("info")
    public R info(){
        return R.ok().data("roles", "admin")
                .data("name", "admin")
                .data("avatar","https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1593106255,4245861836&fm=26&gp=0.jpg");
    }
}
